<template>
  <div class="orderDetail">
    <div class="detailTitle">
      <span></span>
      <p>崇州九龙沟。上元来德酒店</p>
    </div>
    <div class="detailContent">
      <div class="proDetailLeft">
        <Descriptions :list="list" :column="2" :title="'基本信息'">
        </Descriptions>
        <Descriptions :list="list" :column="2" :title="'时间'"> </Descriptions>
      </div>
      <div class="proDetailRight">
        <!-- 套餐信息 -->
        <div class="packageInfo">
          <div class="title">
            <div class="blueBox"></div>
            <span>套餐信息</span>
          </div>

          <el-table
            :data="tableData"
            size="medium"
            height="250"
            class="el-table"
            style="width: 98%"
          >
            <el-table-column fixed prop="id" label="套餐ID" width="150">
            </el-table-column>
            <el-table-column prop="name" label="套餐名称" width="190">
            </el-table-column>
            <el-table-column prop="num" label="数量" width="130">
            </el-table-column>
            <el-table-column prop="price" label="价格" width="120">
            </el-table-column>
            <el-table-column
              prop="channelPrice"
              label="新媒体渠道价格"
              width="180"
            >
            </el-table-column>
            <el-table-column prop="rate" label="佣金比例" width="120">
            </el-table-column>
          </el-table>
        </div>
        <!-- 操作日志 -->
        <div class="packageInfo">
          <div class="title">
            <div class="blueBox"></div>
            <span>操作日志</span>
          </div>
          <div class="steper">
            <el-steps :active="2" align-center direction="vertical">
              <el-step
                title="时间：  操作人"
                description="上架了订单"
                icon="el-icon-help"
              ></el-step>
              <el-step
                title="步骤2"
                description="下架了订单"
                icon="el-icon-help"
              ></el-step>
              <el-step
                title="步骤3"
                description="下架了订单 下架原因为"
                icon="el-icon-help"
              ></el-step>
              <el-step
                title="步骤4"
                description="下架了订单"
                icon="el-icon-help"
              ></el-step>
            </el-steps>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Descriptions from "./components/Descriptions";
export default {
  components: {
    Descriptions,
  },
  data() {
    return {
      list: [
        { label: "产品名称", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品名称1", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品名称2", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品名称3", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品名称4", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品名称5", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品名称6", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品名称7", content: "崇州九龙沟。上元来德酒店." },
      ],
      listNew: [
        { label: "产品名称1", content: "崇州九龙沟。上元来德酒店." },
        { label: "产品54名称2", content: "崇州九龙沟。上879元来德酒店." },
        { label: "产品名称3", content: "崇州九龙沟。上元来德酒店." },
        { label: "产3689品名称4", content: "崇州九龙沟。上689678元来德酒店." },
        { label: "产品名3689称5", content: "崇州九龙沟。6上元来德酒店." },
        { label: "产品678名称6", content: "崇州九龙沟。67上元来德酒店." },
        { label: "产品名687称7", content: "崇州九龙沟67。上元来德酒店." },
        { label: "产品名称8", content: "崇州九龙沟。上元来德酒店." },
      ],
      tableData: [
        {
          id: "123456",
          name: "2大1小亲子房",
          num: "套餐库存：150",
          price: "售价：130",
          channelPrice: "-",
          rate: "10/5/5",
        },
        {
          id: "123456",
          name: "2大1小亲子房",
          num: "套餐库存：150",
          price: "售价：130",
          channelPrice: "-",
          rate: "10/5/5",
        },
        {
          id: "123456",
          name: "2大1小亲子房",
          num: "套餐库存：150",
          price: "售价：130",
          channelPrice: "-",
          rate: "10/5/5",
        },
      ],
    };
  },
};
</script>

<style scoped lang="scss">
.orderDetail {
  .detailTitle {
    background: #fafafa;
    color: #333;
    height: 42px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    span {
      display: inline-block;
      height: 24px;
      width: 24px;
      background: #1d6fe9;
      border-radius: 5px;
      margin: 0 10px;
    }
  }
  .detailContent {
    padding: 10px;
    display: flex;
    justify-content: space-between;
  }

  .proDetailLeft,
  .proDetailRight {
    width: 50%;
  }
  .proDetailRight {
    padding: 10px;
    .packageInfo {
      background: #fafafa;
      border-bottom: 1px solid transparent;
      margin-bottom: 10px;
    }

    .steper {
      padding: 10px;
    }

    .blueBox {
      width: 3px;
      height: 14px;
      background: #1d6fe9;
    }
    .title {
      width: 100%;
      background: #fff;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      line-height: 22px;
      padding-bottom: 10px;
      span {
        font-size: 14px;
        font-weight: 700;
        color: #333;
        margin-left: 4px;
        margin-top: 1px;
      }
    }
    .el-table {
      margin: 10px;
    }
  }
}
</style>
